<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>知识分类</title>
    <meta name="renderer" content="webkit"/> 
    <meta name="force-rendering" content="webkit"/> 
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"/> 
    <link rel="stylesheet" type="text/css" href="/static/css/hw-admin.css">
</head>
<body style="background:#fff">
    <div class="hw-header-wrapper">
            <div class="hw-header">
                <div class="hw-header__item--left">
                 用户详情
                </div>
            </div>
    </div>
        <div class="main-table-wrap">
            <form id="table-form" method="post" action="">
             <input type="hidden" value="" name="id" id="exportid">
                <table cellspacing="0" cellpadding="0" border="0" id="first-table">  
                    <colgroup> 
                        <col class="col-2">
                        <col class="col-7">
                        <col class="col-10">
                        <col class="col-7">
                        <col class="col-10">                                         
                    </colgroup>
                    <tbody>
                        <tr>  
                            <td rowspan="4" style="border-right:1px solid #ccc;">
                             <img src="<?=$find['headimgurl'] ?>" alt="" style="width:100px;height:100px;margin:0 auto;display:block;">
                             <div style="margin:5px auto; text-align:center;"><?=$find['phone'] ?></div>
                             <div style="margin:5px auto;text-align:center;">
                                <?php 
                                    switch ($find['role']) {
                                        case '1':
                                            echo '主持人';
                                            break;
                                        
                                        case '2':
                                            echo '摄影师';
                                            break;

                                        case '3':
                                            echo '化妆师';
                                            break;

                                        case '4':
                                            echo '婚礼策划师';
                                            break;

                                        case '5':
                                            echo '设计师';
                                            break;

                                        case '6':
                                            echo '督导师';
                                            break;

                                        case '7':
                                            echo '摄像师';
                                            break;

                                        default:
                                            echo '';
                                            break;
                                    }
                                ?>
                                　<?=$find['name'] ?>
                            </div>
                            </td>
                            <td style="border-right:1px solid #ccc;background: #f9fafc;text-align:right;">地区</td>
                            <td style="border-right:1px solid #ccc"><?=$find['area'] ?>-<?=$find['city'] ?></td>
                            <td style="border-right:1px solid #ccc;background: #f9fafc;text-align:right;">价格</td>
                            <td><?=!empty($find['price']) ? '￥'.$find['price'] : '' ?></td>
                        </tr>
                        <tr>  

                            <td style="border-right:1px solid #ccc;background: #f9fafc;text-align:right;">性别</td>
                            <td style="border-right:1px solid #ccc"><?=$find['sex'] === '0' ? '女' : $find['sex'] === '1' ? '男' : '' ?></td>
                            <td style="border-right:1px solid #ccc;background: #f9fafc;text-align:right;">年龄</td>
                            <td style="border-right:1px solid #ccc"><?=!empty($find['birthday']) ? (date('Y') - date('Y', strtotime($find['birthday']))) : '' ?></td>
                        </tr>
                        <tr>  
                            <td style="border-right:1px solid #ccc;background: #f9fafc;text-align:right;">公司名称</td>
                            <td style="border-right:1px solid #ccc"><?=$find['firm'] ?></td>
                            <td style="border-right:1px solid #ccc;background: #f9fafc;text-align:right;">创建时间</td>
                            <td style="border-right:1px solid #ccc"><?=$find['create_time'] ?></td>
                        </tr>
                        <tr>  
                            <td style="border-right:1px solid #ccc;background: #f9fafc;text-align:right;">个人简介</td>
                            <td colspan="3"><?=$find['info'] ?></td>
                        </tr>                                           
                    </tbody>
                </table>
                
            </form>
            <!--列表分页 -->
        </div>
<script type="text/javascript" src="/static/lib/jquery-1.12.4.min.js"></script>
<script type="text/javascript" src="/static/lib/jquery.form.min.js"></script>
<script type="text/javascript" src="/static/lib/jquery.validate.js"></script>
<script type="text/javascript" src="/static/lib/messages_zh.js"></script>
<script type="text/javascript" src="/static/lib/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/static/js/common/util.js"></script>
<script type="text/javascript" src="/static/js/common/common.js"></script>
<script>
$(".export").click(function(){
    var checked=$(":checked")
    var arr=[]
    for(var i=0;i<checked.length;i++){
        if($(checked[i]).attr("data-id")!=null){
         arr.push($(checked[i]).attr("data-id"))
        }
    }
    if(arr.length==0){
        $.alert("请选择")
        return false
    }
        $.confirm({
        msg:"<i class='iconfont' style='color:#eac149;margin-right:5px;''>&#xe640;</i>确定批量导出?",
        confirm:function(){
        $("#exportid").val(arr);
        $("#table-form").submit()
        }
    })

})


</script>
</body>
</html>